package defense_against_all;

import java.awt.*;

import javax.swing.ImageIcon;

public class Fire {
	int x, y; //location of bullets /bombs
	Image bombs;
	boolean visible;
	
	public Fire(int startX, int startY){
		
		x = startX;
		y = startY;
		
		ImageIcon ic = new ImageIcon("GameDevelopment/DefenseAgainstAll/src/defense_against_all/image/bomb.png");
		bombs = ic.getImage();
		
		visible = true;
		
	}
	public Rectangle getBounds(){
		return new Rectangle(x,y,14,6);
	}
	public void move(){
		x = x+4;
		if(x>800)
			visible = false;
	}
	public int getX(){
		return x;
	}
	public int getY(){
		return y;
	}
	public Image getImage(){
		return bombs;
	}
	public boolean getVisible(){
		return visible;
	}
}
